Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 6 - Configuration Management / Configuration Management Reference
Functions / Creating, Cloning, and Removing a Configuration Structure


OTDestroyConfiguration

Deletes an OTConfiguration structure.

C INTERFACE
void OTDestroyConfiguration(OTConfiguration* cfig);
C++ INTERFACES
None. C++ applications use the C interface to this function.

PARAMETERS
cfig
A pointer to the OTConfiguration structure that you want to delete.
DESCRIPTION
The OTDestroyConfiguration function deletes the OTConfiguration structure that you specify in the cfig parameter and releases all associated memory.

SPECIAL CONSIDERATIONS
Functions that open providers delete the OTConfiguration structure that they use. For this reason, most applications need not call the OTDestroyConfiguration function. You should call the OTDestroyConfiguration function only to delete an OTConfiguration structure not used to open a provider.

SEE ALSO
For more information about creating configuration structures, see the sections "About Provider Configurations" (page 6-3) and "Creating and Reusing Provider Configurations" (page 6-10).

To create an OTConfiguration structure, call the OTCreateConfiguration function (page 6-27).

To copy an OTConfiguration structure, call the OTCloneConfiguration function (page 6-29).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996